SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].[MonedasInsertCommand]
(
	@ID numeric(10, 0),
	@MONEDA varchar(10),
	@ACTIVO bit
)
AS
	SET NOCOUNT OFF;
DECLARE @I NUMERIC(10,0) = (SELECT(ISNULL(MAX([MONEDAS].ID),0))+1 FROM [MONEDAS]);

INSERT INTO [MONEDAS] ([ID], [MONEDA], [ACTIVO]) VALUES (@I, @MONEDA, @ACTIVO);
	
SELECT ID, MONEDA, ACTIVO FROM MONEDAS WHERE (ID = @I)
GO
